package cn.iocoder.yudao.module.member.controller.admin.confadditionalfee.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "管理后台 - 阶梯费用配置新增/修改 Request VO")
@Data
public class MemberConfAdditionalFeeSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4072")
    private Long id;

    @Schema(description = "关联物料策略ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25951")
    @NotNull(message = "关联物料策略ID不能为空")
    private Long materialPolicyId;

    @Schema(description = "最小重量（克）")
    private BigDecimal minWeight;

    @Schema(description = "最大重量（克）")
    private BigDecimal maxWeight;

    @Schema(description = "每克费用（元/克）")
    private BigDecimal feePerGram;

}